package com.service.impl;

import com.dao.ManagerDao;
import com.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class ManagerServiceImpl implements ManagerService {

    ManagerDao managerDao;
    @Autowired
    public void setManagerDao(ManagerDao managerDao) {
        this.managerDao = managerDao;
    }

    @Override
    public Map<Object, Object> findOne(int id) {

        return managerDao.findOne(id);
    }

    @Override
    public List<Map<Object, Object>> findAll() {
        return managerDao.findAll();
    }

    @Override
    public Integer addOne(Map<Object, Object> map) {
        return managerDao.addOne(map);
    }

    @Override
    public Integer deleteOne(int id) {
        return managerDao.deleteOne(id);
    }

    @Override
    public Integer update(Map<Object, Object> map) {
        return managerDao.update(map);
    }
}
